<?php

// 4/25/2010: immanuel192 write this action to return bible translation books

if (!defined('EXPONENT')) exit('');

global $db;
// get t2 value, just for fun
$t2=$_GET['t2'];
$id = -1;
if (isset($_REQUEST['id']))
{
	$id = intval($_REQUEST['id']);
	$data=$db->selectObjects("bible_info","bible_id = " . $id . " ORDER BY bindex");
	$html="";
	foreach ($data as $k=>$v)
	{
		$html.="<option value='{$v->bindex}'>{$v->book_name}</option>";
	}
	echo $t2; echo $html;	
}
else
{
	die();
}
?>
